execute if entity @s[nbt={VillagerData:{level:2}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[0]
execute if entity @s[nbt={VillagerData:{level:2}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[1]
execute if entity @s[nbt={VillagerData:{level:2}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[2]
execute if entity @s[nbt={VillagerData:{level:2}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[3]
execute if entity @s[nbt={VillagerData:{level:3}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[4]
execute if entity @s[nbt={VillagerData:{level:3}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[5]
execute if entity @s[nbt={VillagerData:{level:3}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[6]
execute if entity @s[nbt={VillagerData:{level:3}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[7]
execute if entity @s[nbt={VillagerData:{level:4}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[8]
execute if entity @s[nbt={VillagerData:{level:4}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[9]
execute if entity @s[nbt={VillagerData:{level:4}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[10]
execute if entity @s[nbt={VillagerData:{level:4}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[11]
execute if entity @s[nbt={VillagerData:{level:5}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[12]
execute if entity @s[nbt={VillagerData:{level:5}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[13]
execute if entity @s[nbt={VillagerData:{level:5}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[14]
execute if entity @s[nbt={VillagerData:{level:5}}] run data modify entity @s Offers.Recipes append from entity @e[type=villager,tag=TradeOrigin,limit=1] Offers.Recipes[15]
tag @s remove upgradeVillager